﻿<%@ Page Language="C#" MasterPageFile="~/Shared/MainPage.Master" AutoEventWireup="true" CodeBehind="OrderList.aspx.cs" Inherits="Runda.CMS.Portal.Order.OrderList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
<script src="../Content/global.js" type="text/javascript"></script>     
    <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" /> 
    <link href="../Content/Find/find.css" rel="stylesheet" type="text/css" />
   <link href="../Content/Grid/Grid.css" rel="stylesheet" type="text/css" /> 
    <script src="../Content/Grid/map_grid.js" type="text/javascript" ></script>
    <link href="../Content/Pager.css" rel="stylesheet" type="text/css" />
      <link href="../Content/Form/form.css" rel="Stylesheet" type="text/css" />     
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
 <div class="Container">
         
         <table class="mnubar" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td style="padding-left: 5px" nowrap>
                        <b>订单列表</b>
                    </td>
                    <td style="padding-left: 5px">
                        <img src="../Content/Grid/separator.gif">
                    </td>
                    <td class="icMenu" nowrap>                   
                         
                    </td>       
                      <td class="icMenu mnuRight" nowrap>               
                      <span class="menu">
                            </span>      
                    </td>           
                </tr>
            </tbody>
        </table>       
         
        <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">
        </div>
             <asp:Repeater ID="RepeaterOrders" runat="server" 
                 onitemcommand="RepeaterOrders_ItemCommand" 
             onitemdatabound="RepeaterOrders_ItemDataBound">
                 <HeaderTemplate>
                    <table id="grid" class="grid" cellspacing="0" cellpadding="0" width="1024px">
            <tbody>
                <tr class="header">
                    <td align="left" style="width:120px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">订单号</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                  
                     <td align="left" style="width:200px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">客户名称</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">品名</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td>                      
                     <td align="left" style="width:100px"> 
                    <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">规格</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                    <td style="width:80px">
                       <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">订购日期</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                      <td style="width:80px">
                       <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">订购时间</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                       <td align="right"style="width:60px">
                       <div><div style="display:inline;float:left;height:auto; overflow:hidden;width:96%;text-align:center;">订购数量</div>
                        <div style="display:inline;float:right;height:auto; overflow:hidden;"><img src="../Content/Grid/bar_line.gif" border="0"></div>
                        </div>
                    </td> 
                       
                    <td width="14px">
                        <asp:ImageButton ID="imgbtnRefersh" CommandName="refersh" runat="server" ImageUrl="../Content/Grid/grid_Refresh.gif" AlternateText="刷新列表"/> 
                    </td>
                </tr>
                 </HeaderTemplate>
                 <ItemTemplate>
                  <tr class="data" onclick="handleClick()" >
                    <td style="width:100px">
                      <asp:Label runat="Server" ID="orderDetailId" Visible="false" Text='<%#Eval("orderDetailId") %>'></asp:Label>
                        <div style="text-align:right;width:100px"><asp:Label runat="Server" ID="billNo" Text='<%#Eval("billNo") %>' ToolTip='<%#Eval("billNo") %>'></asp:Label></div>
                    </td>                   
                    <td class="tdautolen"><asp:Label ID="customerName" runat="server" Text='<%#Eval("customerName") %>' ToolTip='<%#Eval("customerName") %>'></asp:Label>
                        <asp:Label ID="customerID" runat="server" Text='<%#Eval("customerID") %>' Visible="false"></asp:Label></td>               
                    <td class="tdautolen"><asp:Label ID="inventoryName" runat="server" Text='<%#Eval("inventoryName") %>' ToolTip='<%#Eval("inventoryName") %>'></asp:Label>
                            <asp:Label ID="inventoryCode" runat="server" Text='<%#Eval("inventoryCode") %>' Visible="false"></asp:Label></td>                                            
                    <td class="tdautolen"><asp:Label ID="inventoryStandard" runat="server" Text='<%#Eval("inventoryStandard") %>'></asp:Label></td>
                    <td><asp:Label ID="orderDate" runat="server" Text='<%#Eval("orderDate") %>'></asp:Label> </td>
                    <td><asp:Label ID="orderTime" runat="server" Text='<%#Eval("orderTime") %>'></asp:Label> </td>
                    <td><div style="text-align:right"><asp:Label ID="orderQuantity" runat="server" Text='<%#Eval("orderQuantity") %>'></asp:Label> </div></td>
                    
                    <td></td>
                </tr>
                 </ItemTemplate>
                 <FooterTemplate>
                    </tbody>
                </table>  
                 </FooterTemplate>
             </asp:Repeater>    
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator"   PageSize="15"
                            CurrentPageButtonClass="cpb" 
                            CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
                            FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页" 
                            ShowCustomInfoSection="Left" Width="100%" LayoutType="Table"  
                            SubmitButtonClass="but" SubmitButtonText="转到" OnPageChanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>    
         </div>       
</asp:Content>
